﻿package commands.request.impl 
{
	import as3.collections.IMap;
	import commands.request.IRequestable;
	import commands.request.IRequestCommands;
	/**
	 * ...
	 * @author Rami
	 */
	public class RequestCommandSet implements IRequestCommands
	{
		private var _commandsSet:XML;
		
		public function RequestCommandSet() 
		{
			this._commandsSet = new XML("<commands></commands>");
		}
		public function addRequest(command : IRequestable, commandArguments:IMap):void
		{
			this._commandsSet.appendChild(command.createCommand(commandArguments));
		}
		
		public function retrieveFullCommands():XML
		{
			return this._commandsSet;
		}

		
	}

}